<?php

//接口路由文件

use think\facade\Route;

Route::rule('Base/Upload', 'Base/Upload')->middleware(['JwtAuth']);	//图片上传;

/***start*/
Route::group('person', function () {
    Route::rule('userInfo', 'Person.User/userInfo');	//用户用户列表;
    Route::rule('mbtiOrderList', 'Person.User/mbtiOrderList');	//MBTI列表;
    Route::rule('friendList', 'Person.User/friendList');	//用户列表;

})->middleware(['JwtAuth']);


Route::group('mbti', function () {
    Route::rule('index', 'Mbti.mbti/index');
    Route::rule('create', 'Mbti.order/save');
    Route::rule('getTopic', 'Mbti.order/getTopic');
    Route::rule('subResult', 'Mbti.order/subResult');
    Route::rule('resultAnswer', 'Mbti.order/resultAnswer');
    Route::rule('orderPayment', 'Mbti.order/orderPayment');
    Route::rule('orderWxPay', 'Mbti.order/orderWxPay');
    Route::rule('getPayment', 'Mbti.order/getPaymentState');
    Route::rule('orderBinding', 'Mbti.order/orderBinding');
}) ;
//微信登录
Route::rule('wxLogin', 'Login/wxLogin');
//发送短信
Route::rule('sendCode', 'Login/sendCode');
//手机号登录
Route::rule('phoneLogin', 'Login/phoneLogin');

/***end**/



